package org.example.springbook.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/test")
@RestController
public class TestController {
    @RequestMapping("/t1")
    public String t1() {
        return "t1";
    }

    @RequestMapping("/t2")
    public String t2() {
        int n = 10/0;
        return "t2";
    }

    @RequestMapping("/t3")
    public String t3() {
        String a = null;
        System.out.println(a.length());
        return "t3";
    }

}
